package qnaaction;


import java.util.ArrayList;

import qnainterceptor.BoardDaoAware;
import qnautil.BoardDAO;
import qnautil.BoardVO;


import com.opensymphony.xwork2.ActionSupport;

public class ListAction extends ActionSupport implements BoardDaoAware{

	private ArrayList<BoardVO> list;
	private BoardDAO dao;
	
	public void setBoardDao(BoardDAO dao){
		this.dao = dao;
	}
	
	public ArrayList<BoardVO> getList() {
		return list;
	}
	public void setList(ArrayList<BoardVO> list) {
		this.list = list;
	}
	public BoardDAO getDao() {
		return dao;
	}
	public void setDao(BoardDAO dao) {
		this.dao = dao;
	}
	
	public String execute() throws Exception {
		list = dao.List();
		return SUCCESS;
	}

}
